package com.kunlun.basedata.limit.service;

import com.kunlun.basedata.limit.model.CorrelateModel;
import com.kunlun.basedata.limit.model.po.CorrelatePo;
import com.kunlun.basedata.limit.model.vo.CorrelateVo;
import com.kunlun.basedata.limit.model.vo.UserRelateVo;
import com.kunlun.common.model.Page;

import java.util.List;
import java.util.Map;

/**
 * 岗位业务接口
 */
public interface ICorrelateService {

    public List<CorrelateVo> getUnitNodeTree(String type) throws Exception;

    public List<CorrelateVo> getCorrelateList(Map<String, Object> queryMap) throws Exception;

    public Page<CorrelateVo> getCorrelatePage(CorrelatePo correlatePo, int currentPage, int pageSize) throws Exception;

    public void addCorrelate(CorrelateModel correlateModel) throws Exception;

    public void addCorrelate(CorrelatePo correlatePo) throws Exception;

    public UserRelateVo getCorrelateTeanatAndAppByUser(String tenantId, String appId, String userId) throws Exception;

    public UserRelateVo getCorrelateByUser(String tenantId, String appId, String userId) throws Exception;
}
